package com.woniu.finance.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.finance.entity.Tender;
import com.woniu.finance.entity.vo.TendFullVO;
import com.woniu.finance.entity.vo.TenderPlatformAuditVO;
import com.woniu.finance.entity.vo.TenderVO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 投标表 Mapper 接口
 * </p>
 *
 * @author 刘品水
 * @since 2023-04-25
 */
@Mapper
@Service
public interface TenderMapper extends BaseMapper<Tender> {
    List<Tender> selectTender(TenderVO tenderVO);

    List<Tender> findTenderByAnnualizedInterestRate1(Double annualizedInterestRate);

    List<Tender> findTenderByAnnualizedInterestRate2(Double annualizedInterestRate);

    List<Tender> findTenderByAnnualizedInterestRate3(Double annualizedInterestRate);

    /**
     * 查询标满状态
     * @param fname
     * @param ename
     * @return
     */
    List<TendFullVO> queryTendFull(String fname, String ename);

    /**
     * 通过ids批量修改标的状态
     * @param ids
     */



    /**
     * 查询平台待审核状态的标的
     * @param
     * @param coreName
     * @return
     */
    List<TenderPlatformAuditVO> queryTendPlatformAudit(String financeName, String coreName);

    void updateTend(List<String> ids);


   void saveTender(Tender tender);

    /**
     * 设置标的结束
     * @param
     */
    void afterRepay(List<Integer> ids);


}
